package com.company.作业;

import java.util.Scanner;

public class Main {
        public static void main(String[] args) {

            System.out.println("请输入同学的分数");
            Scanner in=new Scanner(System.in);
            double score = in.nextDouble();
            if((score>=0)&&(score<=59)){
                System.out.println("等级=C");
            }
             else if((score>=60)&&(score<=80)){
                System.out.println("等级=B");
            }
             else if((score>=81)&&(score<=100)){
                System.out.println("等级=A");
            }
            if((score<0)||(score>100)){
                System.out.println("成绩输入错误，请重新输入");
            }


}
}














